package com.umeox.watch.moto.dataservice.mqtt.bean;


/**
 * Created by Rambo 2020/5/25
 * Describe:
 */
public class VoipInviteBody {

    public static int STATUS_CALLING = 1;
    public static int STATUS_CANCEL_CALL = 2;

    public static int TYPE_VIDEO_CALL = 1;
    public static int TYPE_VOICE_CALL = 2;
    public static int TYPE_PTT_CALL = 3;

    public String fromMemberId;

    public String toMemberId;

    public String channel;

    public int status;

    public int type;

    public static final class Builder {
        public String fromMemberId;
        public String toMemberId;
        public String channel;
        public int status;
        public int type;
        public int userType;

        private Builder() {
        }

        public static Builder aVoipIntiveBody() {
            return new Builder();
        }

        public Builder setFromMemberId(String fromMemberId) {
            this.fromMemberId = fromMemberId;
            return this;
        }

        public Builder setToMemberId(String toMemberId) {
            this.toMemberId = toMemberId;
            return this;
        }

        public Builder setChannel(String channel) {
            this.channel = channel;
            return this;
        }

        public Builder setStatus(int status) {
            this.status = status;
            return this;
        }

        public Builder setType(int type) {
            this.type = type;
            return this;
        }

        public Builder setUserType(int userType) {
            this.userType = userType;
            return this;
        }

        public VoipInviteBody build() {
            VoipInviteBody voipInviteBody = new VoipInviteBody();
            voipInviteBody.toMemberId = this.toMemberId;
            voipInviteBody.type = this.type;
            voipInviteBody.fromMemberId = this.fromMemberId;
            voipInviteBody.channel = this.channel;
            voipInviteBody.status = this.status;
            return voipInviteBody;
        }
    }

    @Override
    public String toString() {
        return "VoipIntiveBody{" +
                "fromMemberId='" + fromMemberId + '\'' +
                ", toMemberId='" + toMemberId + '\'' +
                ", channel='" + channel + '\'' +
                ", status=" + status +
                ", type=" + type +
                '}';
    }
}
